<template>
  <adv-fliqo :value="homepage"></adv-fliqo>
  <div>
    <adv-button @click="log">手动刷新</adv-button>
  </div>
</template>

<script setup lang="ts">
import { getStatistics } from "../../api";
import { onMounted, ref } from "vue";
const homepage = ref(0);
const log = () => {
  getStatistics().then((res) => {
    homepage.value = res.homepage;
  });
};
onMounted(() => {
  log();
});
</script>
